package com.zxz.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zxz.service.TestService;

@Controller
public class UserConntroller {
	@Resource
	public TestService service;
	
	@RequestMapping("/showUser.do")
	public String showUser(HttpServletRequest request){
		String name = service.getName();
		request.setAttribute("name", name);
		return "showUser";
	}
}
